package com.qztc.hire_end_dto.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;

@TableName("welfare")
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@Schema(title = "福利信息")
public class Welfare extends Model<Welfare> implements Serializable {
    @Schema(title = "福利id")
    @TableId(value = "welfare_id")
    private int welfareId;

    @Schema(title = "福利名称")
    @TableField(value = "welfare_name")
    private String welfareName;

    @Schema(title = "福利类型id，外键")
    @TableField(value = "welfare_typeid")
    private String welfareType;

    @Schema(title = "领取条件")
    @TableField(value = "welfare_condition")
    private String welfareCondition;

    @Schema(title = "有效期（天）")
    @TableField(value = "validity_period")
    private String validityPeriod;

    @Schema(title = "创建时间")
    @TableField(value = "welfare_createdate")
    private String welfareCreateDate;
}